<div class="content">
	<form class="form-horizontal" name="textForm" ng-submit="vm.submitForm(textForm.$valid)" novalidate>
		<div class="ibox">
	        <div class="ibox-title">
	            <h5>打卡点列表</h5>
                <button type="button" class="btn btn-sm btn-primary pull-right m-t-n-xs" ui-sref="dashboard.race.cp">新增打卡点 </button>
                <button type="button" class="btn btn-sm btn-primary pull-right m-t-n-xs"  ng-click="vm.checkCamera()" style="margin-right: 10px;"> 检查摄像头</button>
                <button type="button" class="btn btn-sm btn-primary pull-right m-t-n-xs"  ng-click="vm.unbind()" style="margin-right: 10px;"> 解绑所有设备</button>
	        </div>
	        <div class="ibox-content">

                <div class="form-group margin-top-20">
                    <div class="col-lg-6 col-lg-offset-3">
                    <table class="table table-striped table-bordered table-hover" ng-if="vm.cplist.length>0">
                        <thead>
                            <tr>
                                <th class="text-center">打卡点编号</th>
                                <th class="text-center">打卡点名称</th>
                                <th class="text-center">关联科目</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr ng-repeat="cp in vm.cplist" ui-sref="dashboard.race.cpedit({cp_id: cp.cp_id})">
                                <td class="text-center">{{cp.cp_index}}</td>
                                <td class="text-center">{{cp.cp_name}}</td>
                                <td class="text-center">{{cp.course_calc}}</td>
                            </tr>
                        </tbody>
                    </table>
                    <p class="text-center" ng-if="vm.cplist.length==0">
                        暂无打卡点。
                    </p>
                    </div>
                </div>

                <!-- <div class="form-group margin-top-20" style="padding: 10px; border-top: 4px solid #E7EAEC; border-bottom: 1px solid #E7EAEC;">
                    <h4>科目列表
                        <button type="button" class="btn btn-sm btn-primary pull-right m-t-n-xs" ui-sref="dashboard.race.course">新增</button>
                    </h4>
                </div>
                <div class="form-group margin-top-20">
                    <div class="col-lg-6 col-lg-offset-3">
                        <table class="table table-striped table-bordered table-hover " ng-if="vm.courselist.length>0">
                            <thead>
                                <tr>
                                    <th class="text-center">科目名称</th>
                                    <th class="text-center">允许报名人数</th>
                                    <th class="text-center">报名人数</th>
                                    <th class="text-center">排名方式</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="course in vm.courselist" ui-sref="dashboard.race.courseedit({course_id: course.course_id})">
                                    <td class="text-center">{{course.course_name}}</td>
                                    <td class="text-center">{{course.reg_num}}</td>
                                    <td class="text-center">{{course.real_reg_num}}</td>
                                    <td class="text-center">{{course.dist_team == 'yes' ? '团体排名' : '个人排名'}}</td>
                                </tr>
                            </tbody>
                        </table>
                        <p class="text-center" ng-if="vm.courselist.length==0">
                            暂无科目。
                        </p>
                    </div>
                </div> -->
	        </div>
	    </div>
	</form>
</div>